<html>
<head><meta charset="utf-8"><title>good exit status on chalk errors · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/good.20exit.20status.20on.20chalk.20errors.html">good exit status on chalk errors</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="188107399"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/good%20exit%20status%20on%20chalk%20errors/near/188107399" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/good.20exit.20status.20on.20chalk.20errors.html#188107399">(Feb 13 2020 at 13:51)</a>:</h4>
<p>is it intentional that there is no bad exit status when chalk throws errors inside ra (but ra continues execution)?</p>



<a name="188107538"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/good%20exit%20status%20on%20chalk%20errors/near/188107538" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/good.20exit.20status.20on.20chalk.20errors.html#188107538">(Feb 13 2020 at 13:52)</a>:</h4>
<p>Yes, we <code>catch_unwind</code> around chalk and just assume that the trait is not implemented</p>



<a name="188107565"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/good%20exit%20status%20on%20chalk%20errors/near/188107565" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/good.20exit.20status.20on.20chalk.20errors.html#188107565">(Feb 13 2020 at 13:52)</a>:</h4>
<p>That way, the language server does not restart if you are too clever with generic bounds :)</p>



<a name="188107577"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/good%20exit%20status%20on%20chalk%20errors/near/188107577" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matthiaskrgr <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/good.20exit.20status.20on.20chalk.20errors.html#188107577">(Feb 13 2020 at 13:52)</a>:</h4>
<p>ok <span aria-label="thumbs up" class="emoji emoji-1f44d" role="img" title="thumbs up">:thumbs_up:</span></p>



<a name="188107592"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/good%20exit%20status%20on%20chalk%20errors/near/188107592" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/good.20exit.20status.20on.20chalk.20errors.html#188107592">(Feb 13 2020 at 13:52)</a>:</h4>
<p>It probably makes sense to add a flag to make this fatal, for batch processing, for example</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>